package com.naiterui.ehp.bs.patient.handler.data;

import com.naiterui.ehp.bp.utils.event.BizEvent;

import lombok.Getter;
import lombok.ToString;

/**
 * @author gaoliangliang
 * @date 2019-07-12 13:55
 * @since 1.0.0
 */
@Getter
@ToString(callSuper = true)
public class BizConfigEvent extends BizEvent<String> {

    public static final int BIZ_CONFIG_WXMSG_LIMIT = 1;
    public static final int BIZ_CONFIG_DISCLAIMER_SWITCH_ON = 2;
    public static final int BIZ_CONFIG_DISCLAIMER_SWITCH_OFF = 3;

    private int bizType;

    public BizConfigEvent(String key, String value, int bizType) {
        super(key, value, BizEvent.EVENT_TYPE_BIZCONFIG);
        this.bizType = bizType;
    }

    @Override
    public String getSource() {
        return (String) super.getSource();
    }
}